<?php
/**************************************************************************
 *
 *   Copyright 2010 American Public Media Group
 *
 *   This file is part of AIR2.
 *
 *   AIR2 is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   AIR2 is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with AIR2.  If not, see <http://www.gnu.org/licenses/>.
 *
 *************************************************************************/


/*
|--------------------------------------------------------------------------
| AIR2 User View
|--------------------------------------------------------------------------
| Load inline data for the user page
|
*/
?>
<script type="text/javascript">
    AIR2.User.USERUUID = <?php echo isset($user_uuid) ? "'$user_uuid'" : 'null'; ?>;
    AIR2.User.USERURL  = <?php echo isset($user_url)  ? "'$user_url'"  : 'null'; ?>;
    AIR2.User.USERDATA = <?php echo isset($user_data) ? json_encode($user_data)  : 'null'; ?>;
    AIR2.User.ORGDATA  = <?php echo isset($org_data)  ? json_encode($org_data)   : 'null'; ?>;
    AIR2.User.PICDATA  = <?php echo isset($pic_data)  ? json_encode($pic_data)   : 'null'; ?>;
    AIR2.User.UEMDATA  = <?php echo isset($uem_data)  ? json_encode($uem_data)   : 'null'; ?>;
    AIR2.User.UPHDATA  = <?php echo isset($uph_data)  ? json_encode($uph_data)   : 'null'; ?>;
    AIR2.User.ROLELIST = <?php echo isset($arl_data)  ? json_encode($arl_data)   : 'null'; ?>;
    AIR2.User.ACTDATA  = <?php echo isset($act_data)  ? json_encode($act_data)   : 'null'; ?>;
    AIR2.User.NETDATA  = <?php echo isset($net_data)  ? json_encode($net_data)   : 'null'; ?>;

    Ext.onReady(AIR2.User);
</script>
